import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:remixicon/remixicon.dart';

import 'news_logic.dart';

class NewsPage extends StatelessWidget {
  const NewsPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final logic = Get.find<NewsLogic>();
    final state = Get.find<NewsLogic>().state;

    return SafeArea(
      child: Scaffold(
        appBar: AppBar(
          centerTitle: true,
          backgroundColor: Colors.white,
          elevation: 0,
          title: Text(
            "新闻详情",
            style: TextStyle(
              color: const Color(0xff212121),
              fontSize: 16.sp,
            ),
          ),
          leading: IconButton(
            color: const Color(0xff414442),
            icon: Icon(Remix.arrow_left_s_line, size: 26.sp),
            onPressed: () {
              Get.back();
            },
          ),
        ),
      ),
    );
  }
}
